@extends('admin.layout.index')
@section('content')
<div class="col-md-12">
	<div id="page-inner">
		<div class="card-content">
			<form class="col s12" method="post" action="/admin/carousel/aupdate" enctype="multipart/form-data">
				{{ csrf_field() }}
				<div class="row">
					<div class="input-field col s6">
					<i class="material-icons prefix">account_circle</i>
					<input id="icon_prefix" type="text" name="advername" value="{{ $data['advername'] }}" class="validate" >
					<label for="icon_prefix">广告位名</label>
				    </div>
				</div>
                <div class="input-field col s12" >
                    <i class="material-icons prefix">language</i>
                    <input id="" class="validate" type="text" name="adverurl" value="{{ $data['adverurl'] }}">
                    <label for="url" class="">广告位连接</label>
                </div>
        	    <div class="file-field input-field">
        	    	<div style="width:100px;height:100px;border:1px solid #ccc;margin-bottom:10px;margin-left:50px">
		     			<img src="{{ $data['adverphoto'] }}" style="height:100px;width:100px">
		     		</div>
        	        <div class="btn">
            	        <span>广告图片修改</span>
            	        <input type="file" name="pic" multiple="" >
        	        </div>
                    <div class="file-path-wrapper">
                        <input class="file-path validate" value="{{ $data['adverphoto'] }}" type="text" placeholder="上传你的广告图片">
                    </div>
                </div>
			  	<input type="hidden" name="id" value="{{ $data['id'] }}">
				<input type="submit" value="修改" style="width:150px;height:50px;font-weight:bold;font-size:16px;color:#333;margin-left:10px">
				<input value="重置"  type="reset" style="width:150px;height:50px;font-weight:bold;font-size:16px;color:red;margin-left:30px">
			</form>
		</div>
	</div>
</div>
                
@endsection
